package com.key.win.business.chat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.key.win.base.web.PageRequest;
import com.key.win.base.web.PageResult;
import com.key.win.business.chat.model.ImGroupUser;
import com.key.win.business.chat.vo.ImGroupUserFullVo;

import java.util.List;
import java.util.Set;

public interface ImGroupUserService extends IService<ImGroupUser> {

    PageResult<ImGroupUser> findGroupUserByPaged(PageRequest<ImGroupUser> t);

    List<ImGroupUser> findGroupUser(ImGroupUser imGroupUser);

    boolean addGroupUser(ImGroupUser imGroupUser);

    boolean batchAddGroupUser(ImGroupUser imGroupUser);

    boolean updateGroupUser(ImGroupUser imGroupUser);

    List<ImGroupUser> findGroupUserByUserId(String userId);

    List<ImGroupUserFullVo> findGroupUserByGroupId(String groupId);

    boolean batchDelete(Set<String> ids);

    int deleteGrouUserByGroupId(String groupId);

}
